//
//  HMHomeLabel.m
//  3-15-网易界面（自定义多控制器）
//
//  Created by apple on 15/3/15.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "HMHomeLabel.h"
#define HMScale(scale) ((scale) * 0.2 + 0.8)

@implementation HMHomeLabel

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.textColor = [UIColor yellowColor];
        self.textAlignment = NSTextAlignmentCenter;
        self.userInteractionEnabled = YES;
        self.scale = 0.0;
    }
    return self;
}

- (void)setScale:(CGFloat)scale
{
    _scale = scale;
    
    self.transform = CGAffineTransformMakeScale(HMScale(scale), HMScale(scale));
    self.textColor = [UIColor colorWithRed:1 - scale green:0 blue:scale alpha:1.0];
}


@end
